#ifndef SOCKETTRANSPORT_H
#define SOCKETTRANSPORT_H

#include "autoload.h"
#include "Transport/mainexeqtor.h"
#include "Logic/para.h"
#include "Logic/xmlparser.h"


class SocketTransport
{
private:
    QTcpSocket* socket;
    MainExeqtor* mainExeqtor;
    QDataStream* receivedData;


    QMutex mutex;

public:
    SocketTransport(QTcpSocket* socket, MainExeqtor* mainExeqtor);
    ~SocketTransport();

    void Receive();
    void Send(QDomDocument command);


    QTcpSocket* Socket()
    {
        return socket;
    }
};

#endif // SOCKETTRANSPORT_H
